package com.pri.chat.activity;

import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.flyco.tablayout.SlidingTabLayout;
import com.flyco.tablayout.listener.OnTabSelectListener;
import com.netease.nim.uikit.net.StatusBarUtil;
import com.pri.chat.R;
import com.pri.chat.base.BaseActivity;
import com.pri.chat.fragment.FriendsFragment;
import com.pri.chat.fragment.TiXianFragment;
import com.vondear.rxtool.RxActivityTool;

import java.util.ArrayList;

import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 描述：添加类的描述
 *
 * @author wx5e48d604c2885118
 * @time 2020/4/24
 */
public class QingDanActivity extends BaseActivity {
    @BindView(R.id.goldLinear)
    View goldLinear;
    @BindView(R.id.hongbaoLinear)
    View hongbaoLinear;
    @BindView(R.id.superVipLinear)
    View superVipLinear;
    @BindView(R.id.wishMoneyLinear)
    View wishMoneyLinear;
    @BindView(R.id.tixianLinear)
    View tixianLinear;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_qingdan_layout;
    }

    private int selectIndex = 0;

    @Override
    protected void initView() {
        setTitle("清单");
    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.goldLinear,R.id.superVipLinear,R.id.wishMoneyLinear,R.id.tixianLinear,R.id.hongbaoLinear})
    public void onViewClicked(View v) {
        Bundle bundle = new Bundle();
        if (v.getId() == R.id.goldLinear) {
            bundle.putInt("type",2);
            RxActivityTool.skipActivity(mContext,MoneyNoteListActivity.class,bundle);
        } else if (v.getId() == R.id.superVipLinear) {
            bundle.putInt("type",3);
            RxActivityTool.skipActivity(mContext,MoneyNoteListActivity.class,bundle);
        } else if(v.getId() == R.id.wishMoneyLinear){
            bundle.putInt("type",1);
            RxActivityTool.skipActivity(mContext,MoneyNoteListActivity.class,bundle);
        }else if(v.getId() == R.id.tixianLinear){
            //提现记录
            RxActivityTool.skipActivity(mContext, TiXianNoteListActivity.class);
        } else if(v.getId() == R.id.hongbaoLinear){
            bundle.putInt("type",0);
            RxActivityTool.skipActivity(mContext,MoneyNoteListActivity.class,bundle);
        }
    }


}
